<%

    HttpSession mySession = request.getSession(true);
    String readed = mySession.getAttribute("readed").toString();
    String length = mySession.getAttribute("length").toString();
    if (readed != null && !readed.equals(length)) {
      out.println("parsing " + mySession.getAttribute("fileName") + "|"
              + readed + "bytes of total " + length + " uploaded");
    } else if (readed != null || readed.equals(length)) {
      out.println(readed + " bytes uploaded");
    }
    

%>